Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 18, 2026 21:03
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@mberman84
mberman84 / oc.md
Created February 16, 2026 19:42
OpenClaw Prompts

OpenClaw Prompts - Build Your Own AI Assistant

Prompts to recreate each piece of the OpenClaw system. Use these with any AI coding assistant.


1. Personal CRM "Build a personal CRM that automatically scans my Gmail and Google Calendar to discover contacts from the past year. Store them in a SQLite database with vector embeddings so I can query in natural language ('who do I know at NVIDIA?' or 'who haven't I talked to in a while?'). Auto-filter noise senders like marketing emails and newsletters. Build profiles for each contact with their company, role, how I know them, and our interaction history. Add relationship health scores that flag stale relationships, follow-up reminders I can create, snooze, or mark done, and duplicate contact detection with merge suggestions. Link relevant documents from Box to contacts so when I look up a person, I also see related docs."

2. Meeting Action Items (Fathom)

@kwmiebach
kwmiebach / core.pl
Last active February 18, 2026 21:02
portable perl
#!/usr/bin/perl
###############################################################################
#
# ONLY USE STANDARD TRADITIONAL CORE PERL.
# NO CPAN MODULES. NO MODERN PERL. NO use v5.XX. NO Moose, Moo, Try::Tiny,
# Path::Tiny, or ANY non-core module. Stick to what ships with perl itself:
# strict, warnings, File::Basename, File::Path, File::Copy, Getopt::Long,
# Cwd, POSIX, etc.
#
###############################################################################
@kwmiebach
kwmiebach / odoo18_website_settings_and_fields.py
Last active February 18, 2026 21:02
Available website settings and website fields in Odoo 18
'''
Find out available website settings and website fields.
The fields are recognized with a fuzzy algorythm, so there might be
too many and some might be missing?
Run this in an odoo shell of the odoo instance:
'''
installed_langs = env['res.lang'].search([('active', '=', True)])
print("Installed languages:", installed_langs.mapped('code'))

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@cedrickchee
cedrickchee / rust_resources.md
Last active February 18, 2026 20:57
Awesome Rust — a collection of resources for learning Rust

Awesome Rust

I learn Rust by reading The Rust Programming Language (aka. TRPL) book.

This is my mind map and collection of resources for learning Rust in early 2019.

I plan to continuously update this list if time allows in future. I will move this into its own GitHub repo or something more permanent when this grow.